package org.bzjj.servlet.update;

import java.sql.Connection;
import java.sql.SQLException;

import org.bzjj.sql.OracleCon;
import org.bzjj.sql.Sql;

public class JkIpUpdate {

	public static void ipUpdate() {

		Connection connection = OracleCon.getDBonnect().getConnection();
		// oracle中更新该条信息
		Sql.executeUpdate(connection, "update trffpn_app.frm_ws_control set ipdz1='172.18.16.132,172.18.16.217' where jkxlh='7F19090902041704001589CB869D8A878CDAE8DD8ED8EE848AA7ABC7D5CEDAB2C8EDBCFE'");
		Sql.executeUpdate(connection, "update vis_outsyn.frm_ws_control set ipdz1='172.18.16.132,172.18.16.217' where jkxlh='7F19090902041704001589CB869D8A878CDAE8DD8ED8EE848AA7ABC7D5CEDAB2C8EDBCFE'");

		try {
			connection.close();
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
}
